<!-- 推荐内容 -->
<template>
  <div class="recommend">
    <div v-for="(item, index) in recommends" :key="index" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="item.title">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>


export default {
  name:"Recommend",
  components: {},
  props: {
    recommends:{
      type:Array,
      default() {
        return []
      }
    }
  }
}
</script>
<style scoped>
.recommend{
    display: flex;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.625rem 0 1.25rem;
    border-bottom: 0.625rem solid #eee;
}
.recommend-item{
    flex: 1;
}
.recommend-item img{
    width: 4.375rem;
    height: 4.375rem;
    margin-bottom: 0.625rem;
}
</style>